package lesson.subject;

import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SubjectDao {


    public void addSubject(@Param("name") String name);


    public boolean checkExist(@Param("exceptId") Integer exceptId, @Param("name") String name);

    public List<Subject> list(@Param("keywords") String keywords);


    public void delSubject(Integer id);

    Subject getById(Integer id);

    void updateSubject(@Param("id") Integer id, @Param("name") String name);
}
